﻿
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using User.Model.Models;

namespace User.Model
{
    public class UserDbContext : DbContext
    {
        public UserDbContext(DbContextOptions<UserDbContext> options) : base(options)
        {
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.Entity<UserInfoModel>().ToTable("UserInfo");
            modelBuilder.Entity<UserInfoIndexModel>().ToTable("UserInfoIndex");
            modelBuilder.Entity<UserTaskInfo>().ToTable("UserTaskInfos");
        }
    }
}
